package com.block.im.service;

import com.block.db.entity.ImUserSigInfo;
import com.block.im.model.dto.IMHttpResultDTO;
import com.block.im.model.param.ImUserParam;

import java.util.List;

public interface IImBaseCommonService {

    ImUserSigInfo genUserSig(String userId);

    IMHttpResultDTO accountImport(List<ImUserParam> accountList);

    IMHttpResultDTO sendSystemMsgInfo(ImUserParam toUser, String msgContent);

    IMHttpResultDTO sendSingleMsgInfo(ImUserParam fromUser, ImUserParam toUser, String msgContent);

    IMHttpResultDTO getSessionList(ImUserParam fromUser, Integer startIndex);

    IMHttpResultDTO getHistoryMsg(ImUserParam mainUser, ImUserParam peerUser, String lastMsgKey);
}
